package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 施工合同对象 yt_construction_contract
 * 
 * @author magichaohao
 * @date 2021-05-18
 */
public class YtConstructionContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 施工合同id */
    private Long constructionId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 合同签订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同签订时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractSigningTime;

    /** 录入系统时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入系统时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inputSystemTime;

    /** 合同金额 */
    @Excel(name = "合同金额")
    private BigDecimal contractValue;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 合同文件上传 */
    @Excel(name = "合同文件上传")
    private String uploadOfDocuments;

    /** 用户信息 */
    private YtCustomerMsg ytCustomerMsg;

    public void setConstructionId(Long constructionId) 
    {
        this.constructionId = constructionId;
    }

    public Long getConstructionId() 
    {
        return constructionId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setContractSigningTime(Date contractSigningTime) 
    {
        this.contractSigningTime = contractSigningTime;
    }

    public Date getContractSigningTime() 
    {
        return contractSigningTime;
    }
    public void setInputSystemTime(Date inputSystemTime) 
    {
        this.inputSystemTime = inputSystemTime;
    }

    public Date getInputSystemTime() 
    {
        return inputSystemTime;
    }
    public void setContractValue(BigDecimal contractValue) 
    {
        this.contractValue = contractValue;
    }

    public BigDecimal getContractValue() 
    {
        return contractValue;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setUploadOfDocuments(String uploadOfDocuments) 
    {
        this.uploadOfDocuments = uploadOfDocuments;
    }

    public String getUploadOfDocuments() 
    {
        return uploadOfDocuments;
    }

    public YtCustomerMsg getYtCustomerMsg() {
        return ytCustomerMsg;
    }

    public void setYtCustomerMsg(YtCustomerMsg ytCustomerMsg) {
        this.ytCustomerMsg = ytCustomerMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("constructionId", getConstructionId())
            .append("customerId", getCustomerId())
            .append("contractSigningTime", getContractSigningTime())
            .append("inputSystemTime", getInputSystemTime())
            .append("contractValue", getContractValue())
            .append("projectName", getProjectName())
            .append("uploadOfDocuments", getUploadOfDocuments())
            .toString();
    }
}
